function getFullFilePath(basePath, folderPath) {
  var tempBath = basePath + "";
  var folderPath = folderPath + "";
  var fullPath = '';
  if (tempBath.substr(-1) == '/') {
    tempBath = tempBath.substr(0, tempBath.length - 1);
  }
  if (folderPath.substr(-1) == '/') {
    folderPath = folderPath.substr(0, folderPath.length - 1);
  }
  if (folderPath.substr(0, 1) == '/') {
    folderPath = folderPath.substr(1, folderPath.length - 1);
  }
  fullPath = tempBath + "/" + folderPath + "/";
  return fullPath;
}

function isNullOrEmplty(obj) {
  if (obj == null) {
    return true;
  }
  if (obj === '') {
    return true;
  }
  if (obj === 'undefined') {
    return true;
  }
  if (obj == undefined) {
    return true;
  }
  if (JSON.stringify(obj) === "{}") {
    return true;
  }
  if (JSON.stringify(obj) === "[]") {
    return true;
  }
  if (angular.isUndefined(obj)) {
    return true;
  }
  return false;
}
